import React, { useState } from 'react';
import moment from 'moment';
import { InterviewerSchedule as Schedule } from '@/pages/Recruitment/containers';
/**
 * 员工详情 - 工作日程
 */
const ScheduleTabContent = ({ employeeCode }) => {
    const [currentDate, setCurrentDate] = useState(moment(new Date()));
    return (
        <Schedule
            rangeTitle="我的日程"
            date={currentDate}
            onRangeChange={nextTimeRange => {
                const [startTime] = nextTimeRange;
                setCurrentDate(moment(startTime));
            }}
            employeeCodes={[employeeCode]}
            height={400}
            isShowConflictControl={false}
        />
    );
};

export default ScheduleTabContent;
